export default defineAppConfig({
  pages: [
    'pages/home/index',
    'pages/index/index'
  ],
  subPackages: [
    {
      root: "homeIndex",
      pages: [
        "pages/home/index",
      ]
    },
    {
      root: "petProfile",
      pages: [
        "pages/edit/index",
        "pages/detail/index",
        "pages/list/index",
      ]
    },
    {
      root: "userCenter",
      pages: [
        "pages/editUser/index",
      ]
    },
    {
      root: "community",
      pages: [
        "pages/post/index",
      ]
    },
    {
      root: "petEncyclopedia",
      pages: [
        "pages/index/index",
        "pages/detail/index",
        "pages/category/index"
      ]
    },
    {
      root: "nearbyHospitals",
      pages: [
        "pages/list/index",
      ]
    },
    {
      root: "petMoments",
      pages: [
        "pages/list/index",
      ]
    },
    {
      root: "petIdentify",
      pages: [
        "pages/index/index",
        "pages/list/index",
        "pages/detail/index",
      ]
    },
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '',
    navigationBarTextStyle: 'black'
  },
  usingComponents: Object.assign({
    iconfont: `components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
  }),
  requiredPrivateInfos: [
    "getLocation"
  ],
  permission: {
    "scope.userLocation": {
      "desc": "你的位置信息将用于获取附近宠物医院使用" //
    }
  }
})
